<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>城市内涝排水小车</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: #f0f2f5;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: linear-gradient(135deg, #1a6fc4, #154c8c);
            color: white;
            border-radius: 8px 8px 0 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }

        .logo-area {
            display: flex;
            align-items: center;
        }

        .logo {
            width: 50px;
            height: 50px;
            background-color: #fff;
            border-radius: 50%;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #1a6fc4;
        }

        .platform-title {
            font-size: 22px;
            font-weight: bold;
        }

        .company-name {
            font-size: 16px;
            opacity: 0.9;
        }

        .main-content {
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .sidebar {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            height: fit-content;
        }

        .menu-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .menu-item {
            padding: 10px 15px;
            margin-bottom: 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .menu-item:hover,
        .menu-item.active {
            background-color: #e6f7ff;
            color: #1890ff;
        }

        .content-area {
            display: grid;
            grid-template-rows: auto 1fr;
            gap: 20px;
        }

        .video-section {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #1a6fc4;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .video-container {
            position: relative;
            width: 100%;
            background-color: #000;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 15px;
        }

        #main-video {
            width: 100%;
            display: block;
            border-radius: 6px;
        }

        .video-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }

        .camera-selector {
            padding: 8px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f9f9f9;
            width: 200px;
        }

        .control-buttons {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: #1890ff;
            color: white;
        }

        .btn-primary:hover {
            background-color: #40a9ff;
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid #ddd;
        }

        .btn-outline:hover {
            background-color: #f5f5f5;
        }

        .video-thumbnails {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 15px;
        }

        .thumbnail {
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
        }

        .thumbnail img {
            width: 100%;
            height: 80px;
            object-fit: cover;
            display: block;
        }

        .thumbnail.active:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 3px solid #1890ff;
            border-radius: 4px;
        }

        .data-section {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .data-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .data-card {
            background-color: #f9f9f9;
            border: 1px solid #e8e8e8;
            border-radius: 6px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s;
        }

        .data-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .data-value {
            font-size: 24px;
            font-weight: bold;
            color: #1890ff;
            margin: 10px 0;
        }

        .data-label {
            font-size: 14px;
            color: #666;
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-top: 30px;
        }

        .stat-box {
            background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
            border-radius: 8px;
            padding: 15px;
            text-align: center;
        }

        .stat-value {
            font-size: 28px;
            font-weight: bold;
            margin: 10px 0;
            color: #1a6fc4;
        }

        .stat-label {
            font-size: 14px;
            color: #666;
        }

        footer {
            text-align: center;
            padding: 15px;
            color: #666;
            font-size: 14px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
            }

            .stats-row {
                grid-template-columns: repeat(2, 1fr);
            }

            .data-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }

            .video-thumbnails {
                grid-template-columns: repeat(2, 1fr);
            }

            .video-controls {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            .control-buttons {
                width: 100%;
                justify-content: space-between;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <header>
            <div class="logo-area">
                <div class="logo">BY</div>
                <div>
                    <div class="platform-title">城市内涝排水小车</div>
                    <div class="company-name">BY科技有限公司</div>
                </div>
            </div>
        </header>

        <div class="main-content">
            <div class="sidebar">
                <div class="menu-title">系统菜单</div>
                <div class="menu-item active"><i class="fas fa-video"></i> 项目演示</div>
            </div>

            <div class="content-area">
                <!-- 视频演示部分 -->
                <div class="video-section">
                    <div class="section-title">
                        <span>视频演示</span>
                    </div>

                    <div class="video-container">
                        <video id="main-video" controls>
                            <!-- 请替换为您本地的视频路径 -->
                            <source src="1.mp4" type="video/mp4">
                            您的浏览器不支持HTML5视频播放
                        </video>
                    </div>

                    <div class="video-controls">
                        <select class="camera-selector" id="camera-selector">
                            <option value="1.mp4">视频演示</option>
                        </select>

                        <div class="control-buttons">
                            <button class="btn btn-outline" id="fullscreen-btn"><i class="fas fa-expand"></i>
                                全屏</button>
                        </div>
                    </div>
                </div>

                <div class="data-section">
                    <div class="section-title">实时数据监测</div>
                    <div class="data-grid">
                        <div class="data-card">
                            <div class="data-label">地点</div>
                            <div class="data-value">by的b</div>
                        </div>
                        <div class="data-card">
                            <div class="data-label">时间</div>
                            <div class="data-value">11：45：14</div>
                        </div>
                        <div class="data-card">
                            <div class="data-label">水位</div>
                            <div class="data-value">3.0</div>
                            <div class="data-label">水位(m)</div>
                        </div>
                        <div class="data-card">
                            <div class="data-label">设备状态</div>
                            <div class="data-value">正常</div>
                        </div>
                    </div>

                    <div class="stats-row">
                        <div class="stat-box">
                            <div class="stat-label">总监测点</div>
                            <div class="stat-value">86</div>
                        </div>
                        <div class="stat-box">
                            <div class="stat-label">正常点位</div>
                            <div class="stat-value">78</div>
                        </div>
                        <div class="stat-box">
                            <div class="stat-label">预警点位</div>
                            <div class="stat-value">5</div>
                        </div>
                        <div class="stat-box">
                            <div class="stat-label">报警点位</div>
                            <div class="stat-value">3</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <footer>
            © 2025 城市内涝排水小车 | BY科技有限公司
        </footer>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function () {
            const mainVideo = document.getElementById('main-video');
            const fullscreenBtn = document.getElementById('fullscreen-btn');
            const cameraSelector = document.getElementById('camera-selector');

            // 全屏功能
            fullscreenBtn.addEventListener('click', function () {
                if (mainVideo.requestFullscreen) {
                    mainVideo.requestFullscreen();
                } else if (mainVideo.webkitRequestFullscreen) {
                    mainVideo.webkitRequestFullscreen();
                } else if (mainVideo.msRequestFullscreen) {
                    mainVideo.msRequestFullscreen();
                }
            });

            // 摄像头切换
            cameraSelector.addEventListener('change', function () {
                mainVideo.src = this.value;
                mainVideo.play();
            });
        });
    </script>
</body>

</html>